#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "soundplayer.h"
#include "soundsample.h"
#include <QStandardItemModel>
#include <QShortcut>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    QList<SoundSample*>  *listOfAllSamples;
    QStandardItemModel  *model;
    Ui::MainWindow      *ui;
    SoundPlayer* player;
	
	QShortcut* playStop;
	
private slots:
    void addFiles();
    void drawWaveform(QModelIndex index);
	void setCurrentPos(qint64 ticks);
};

#endif // MAINWINDOW_H
